package com.dhh.sky.activity;

import android.os.Bundle;
import android.widget.ListView;

import com.actionbarsherlock.app.SherlockFragmentActivity;
import com.dhh.sky.R;
import com.dhh.sky.widget.CameraListAdapter;

public class CameraListActivity extends SherlockFragmentActivity{
	private ListView listView;
	private CameraListAdapter adapter;
	
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);		
        setContentView(R.layout.camera_list); 
        initActionBar();
        initView();
	}
	
	private void initView(){
		listView = (ListView) this.findViewById(R.id.camera_list);
		adapter = new CameraListAdapter(this);
		listView.setAdapter(adapter);
	}
	
	protected void initActionBar(){
		getSupportActionBar().setTitle(getString(R.string.title_camera_upload));
        getSupportActionBar().setHomeButtonEnabled(true);    
    	getSupportActionBar().setIcon(R.drawable.ic_navigation_previous_item);
        getSupportActionBar().setDisplayHomeAsUpEnabled(false);  
	}
	
}
